package org.qydjk.console.service;

import org.elasticsearch.common.collect.HppcMaps;
import org.qydjk.common.pojo.StoreCard;
import org.qydjk.common.pojo.StoreCardCategory;

import java.util.List;
import java.util.Map;

/**
 * 体检卡
 */
public interface IStoreCardService {
    /**
     * 删除体检卡种类和分类下的体检卡
     * @param id
     * @return
     * @throws Exception
     */
    int delcardClass(Integer id) throws Exception;

    /**
     * 添加体检卡，卡种类库存+1
     * @param storeCard
     * @return
     * @throws Exception
     */
    int addCard(StoreCard storeCard) throws Exception;

    void addCardfromExcel(StoreCardCategory storeCardCategory, List<Map> cardinfo) throws Exception;


    /**
     * 删除体检卡，分类库存-1
     * @param id
     * @throws Exception
     */
    void delCard(Integer id) throws Exception;

    /**
     * 修改体检卡，根据分类修改库存
     * @param storeCard
     * @throws Exception
     */
    void updateCard(StoreCard storeCard) throws Exception;
}
